import "apt_conf.pp"

Class['apt_defaults'] -> Package<| |>
class includes{
	
	include apt_defaults
	include nis
	include hosts
	if $type_flag != 'nisserv'{
		include autofs
	}
	else{
		include nfs
	}
}
node default{
	if $hostname == 'nisserv'{
		$type_flag = 'nisserv'
	}
	else{
		$type_flag = 'client'
	}

	include includes
}
